import request from "@/utils/request";

// 查询模板实例列表
export function listType(query) {
  return request({
    url: "/myapp/stockmodelinst/",
    method: "get",
    params: query
  });
}

// 查询模板实例详细
export function getType(id) {
  return request({
    url: "/myapp/stockmodelinst/" + id + "/",
    method: "get"
  });
}

// 新增模板实例
export function addType(data) {
  return request({
    url: "/myapp/stockmodelinst/",
    method: "post",
    data: data
  });
}

// 修改模板实例
export function updateType(data) {
  return request({
    url: "/myapp/stockmodelinst/" + data.id + "/",
    method: "put",
    data: data
  });
}

// 删除模板实例
export function delType(dictId) {
  return request({
    url: "/myapp/stockmodelinst/" + dictId + "/",
    method: "delete"
  });
}
